// 统一管理项目 用户相关的接口
import request from "@/utils/request";
// 项目用户相关的请求地址
enum API {
    SEARCH_MEMBER_URL = "/member/search",
    ADD_MEMBER_URL = "/member/add",
    DELETE_MEMBER_ID_URL = "/member/delete",
    DELETE_MEMBER_IDS_URL = "/member/deletes",
}
export const reqSearchMember = (params: any) => {
    return request.post(API.SEARCH_MEMBER_URL, params, { headers: { 'Content-Type': 'application/json' } });
}
export const reqAddMember = (params: any) => {
    return request.post(API.ADD_MEMBER_URL, params, { headers: { 'Content-Type': 'application/json' } });
}
export const reqDeleteMemberById = (id: number) => {
    return request.delete(API.DELETE_MEMBER_ID_URL + "/" + id);
}
export const reqDeleteMemberByIds = (ids: number[]) => {
    return request.delete(API.DELETE_MEMBER_IDS_URL, { data: ids });
}

